package com.hyh.admin.controller;

import com.hyh.ad.common.core.controller.BaseController;
import com.hyh.ad.common.core.domain.AjaxResult;
import com.hyh.admin.domain.GroupsMembers;
import com.hyh.admin.service.IGroupContactService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/im/group")
@Api(tags = "IM-群组成员")
public class GroupMembersController extends BaseController {
    @Autowired
    private IGroupContactService groupMembersService;


    /*
     * 建立群聊
     */
    @RequestMapping("/create")
    public AjaxResult createGroupChat(@RequestBody GroupsMembers groupsMembers) {
        return toAjax(groupMembersService.createGroupChat(groupsMembers));
    }
}
